post_install(){
rm -f /usr/share/gnome-background-properties/adwaita.xml
rm -f /usr/share/gnome-background-properties/gnome-default.xml
rm -rf /usr/share/backgrounds/xfce
mv /usr/share/backgrounds/archwiz/ /usr/share/backgrounds/xfce
rm -f /usr/share/gnome-background-properties/gnome-backgrounds.xml
cp /usr/share/gnome-background-properties/archwiz-backgrounds.xml /usr/share/gnome-background-properties/gnome-backgrounds.xml
chmod -R 755 /usr/share/backgrounds/xfce
}

post_remove(){
rm -rf /usr/share/backgrounds/archwiz
rm -f /usr/share/gnome-background-properties/archwiz-backgrounds.xml
}

pre_upgrade(){
rm -rf /usr/share/backgrounds/archwiz
rm -f /usr/share/gnome-background-properties/archwiz-backgrounds.xml
}

post_upgrade(){
rm -f /usr/share/gnome-background-properties/adwaita.xml
rm -f /usr/share/gnome-background-properties/gnome-default.xml
rm -rf /usr/share/backgrounds/xfce
mv /usr/share/backgrounds/archwiz/ /usr/share/backgrounds/xfce
rm -f /usr/share/gnome-background-properties/gnome-backgrounds.xml
cp /usr/share/gnome-background-properties/archwiz-backgrounds.xml /usr/share/gnome-background-properties/gnome-backgrounds.xml
}

